import { get, post } from '@/common/request';

class CalculateService {
  async calculate(data: FormDataInterface) {
    return await get<CalculateResponseInterface>('/calculate', data);
  }
  async multipleCalculate(dataArr: FormDataInterface[]) {
    return await post('/multiple-calculate', dataArr);
  }
}
const calculateService = new CalculateService();
export default calculateService;
